package com.digitalchina.lxnsy.activity.old;

import android.os.Bundle;
import android.view.View;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.base.BaseActivity;
import com.digitalchina.lxnsy.toolkit.GotoUtil;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.activity
 * 创建人：郑皓
 * 创建时间：2017/9/8 10:20
 * 修改备注：
 * ================================================
 */
public class MoreFunctionActivity extends BaseActivity {

    @Override
    public void setLayout() {
        setContentLayout(R.layout.activity_more_function);
        setTitle("全部应用");
    }

    @Override
    public void initMember() {

    }

    @Override
    public void addListener() {

    }

    @Override
    public void setHandler() {

    }

    @Override
    public void callBack(Object object) {

    }

    @Override
    public void rightOnClick() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.more_tv_expert_consultation, R.id.more_tv_agricultural_forum, R.id.more_tv_price, R.id.more_tv_famous, R.id.more_tv_personnel_service})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.more_tv_expert_consultation:
                //专家咨询
                GotoUtil.gotoActivity(MoreFunctionActivity.this, ExpertConsultationActivity.class);
                break;
            case R.id.more_tv_agricultural_forum:
                //农科大讲堂
                GotoUtil.gotoActivity(MoreFunctionActivity.this, TechnologyTrainingVideoListActivityV2.class);
                break;
            case R.id.more_tv_price:
                //实时价格
                GotoUtil.gotoActivity(MoreFunctionActivity.this, RealTimePriceTabActivity.class);
                break;
            case R.id.more_tv_famous:
                //农家专访修改为更多
                GotoUtil.gotoActivity(MoreFunctionActivity.this, FamousInterviewActivity.class);
                break;
            case R.id.more_tv_personnel_service:
                GotoUtil.gotoActivity(MoreFunctionActivity.this, PersonnelServiceListActivity.class);
                break;
        }
    }
}
